using CustomerContactSystem.Core.Infrastructure.Domain;

namespace CustomerContactSystem.Core.Model {
    public class EnquirySource : Entity {
        public virtual string SourceName { get; set; }

        protected override void Validate() {
            if (string.IsNullOrEmpty(SourceName)) {
                AddBrokenRule(new BusinessRule("SourceName", "Source name is required!"));
            }
        }
    }
}